﻿using System;
using System.Collections.Generic;
using System.Text;
//new
using DataRecv.enums;
using DataRecv.models.sdk.HKSDK;
using DataRecv.models.sdk.DAHUASDK;
using System.Threading;

namespace DataRecv.models.recever
{
    public class Recever_Bag
    {
        public string ip;
        public CHCNetSDK.NET_ITS_PLATE_RESULT NET_ITS_PLATE_RESULT;
        public CHCNetSDK.NET_DVR_PLATE_RESULT NET_DVR_PLATE_RESULT;
        //大华
        public object dhinfo;
        public byte[] pBuffer;
        public byte[] platepic;
        public uint dwAlarmType;
        public int id;
        public string type;
        public string bz;
        public int left;
        public int top;
        public int right;
        public int bottom;

        public Recever_Bag()
        {
            ip = "";
            NET_ITS_PLATE_RESULT = new CHCNetSDK.NET_ITS_PLATE_RESULT();
            NET_DVR_PLATE_RESULT = new CHCNetSDK.NET_DVR_PLATE_RESULT();
            dhinfo = new object();
            pBuffer = null;
            platepic = null;
            dwAlarmType = 0;
            id = 0;
            type = "";
            bz = "";
            left = 0;
            top = 0;
            right = 0;
            bottom = 0;
        }

        public string Txt()
        {
            return ("N=" + id.ToString() + " ip=" + ip + " type=" + type + " bz=" + bz + " thread=" + Thread.CurrentThread.ManagedThreadId.ToString());
        }

        public string PositionString
        {
            get { return (left + "," + top + "," + right + "," + bottom); }
        }
    }
}
